package com.tzm.gaflow.consts;

/**
 * 流程状态描述
 *
 * @author tzm
 *
 */
public class FlowNames {
    /*
     * 任务状态 0：任务未领取 1: 已领取任务(Userid 必须不为空) 2：已经完成
     */
    public static final String TASKSTATE_START = "TASKSTATE_START";// 未领取
    public static final String TASKSTATE_RUN = "TASKSTATE_RUN";// 已经领取
    public static final String TASKSTATE_END = "TASKSTATE_END";// 任务完成
    /*
     * 是否通过
     */
    public static final String RESULT_ACCEPT = "RESULT_ACCEPT";// 通过，接受
    public static final String RESULT_BACK = "RESULT_BACK";// 回退上一步
    public static final String RESULT_CLOSE = "RESULT_CLOSE";// 作废终止
    /*
     * 流程状态
     */
    public static final String FLOW_INVALID = "INVALID";//无效
    public static final String FLOW_ACTIVE = "ACTIVE";//有效
    /**
     * 分配规则
     */
    public static final String ASSIGNRULE_MENU = "ASSIGNRULE_MENU"; // 分配规则，手动分配
    public static final String ASSIGNRULE_WEIGHT = "ASSIGNRULE_WEIGHT"; // 分配规则，按权重分配
    public static final String ASSIGNRULE_TURNS = "ASSIGNRULE_TURNS"; // 分配规则，按顺序分配
    public static final String ASSIGNRULE_DEFAULT = "ASSIGNRULE_DEFAULT"; // 分配规则，默认

    /*
     * 被拒绝后的规则，
     */
    public static final String REFUSERULE_END = "REFUSERULE_END"; // 结束流程
    public static final String REFUSERULE_BUSINESS = "REFUSERULE_BUSINESS"; // 退回到经办
    public static final String REFUSERULE_PREVIOUS = "REFUSERULE_PREVIOUS"; // 退回到上级

}
